<?php

class Ext_Application_Resource_SessionStart extends Zend_Application_Resource_ResourceAbstract
{
    protected $_namespace;

    public function init()
    {
        $options = $this->getOptions();

        $this->_namespace = 'Default';
        if ( isset( $options['namespace'] ) ) {
            $this->_namespace = $options['namespace'];
        }
        return new Zend_Session_Namespace( $this->_namespace );
    }

    public function getNameSpace() {
        return $this->_namespace;
    }

}
